package com.one.group.service;

import com.mybatisflex.core.service.IService;
import com.one.group.model.dto.SpHouseRentalAddDto;
import com.one.group.model.dto.SpHouseRentalQueryDto;
import com.one.group.model.dto.SpHouseRentalRentDto;
import com.one.group.model.dto.SpHouseRentalUpdateDto;
import com.one.group.model.entity.SpHouseRental;
import com.one.group.model.vo.SpHouseRentalListVo;

import java.util.List;

public interface SpHouseRentalService extends IService<SpHouseRental> {
    boolean mySave(SpHouseRentalAddDto spHouseRentalAddDto);

    boolean myUpdate(SpHouseRentalUpdateDto spHouseRentalUpdateDto);

    boolean rentHouse(SpHouseRentalRentDto spHouseRentalRentalRentDto);

    List<SpHouseRentalListVo> listSpHouseRentals(SpHouseRentalQueryDto spHouseRentalQueryDto);

    SpHouseRental myGetById(Long houseId);

    String queryHouseRentInfo(Long cellId);
}
